import json
fo = open("天气预报json.txt", "r", encoding="utf-8").read()
fo = fo.replace("\n", " ")
fo_json = json.loads(fo)
result = fo_json["result"]["future"]
print("===================苏州市天气====================")
for i in range(3):
    print("日期:{0}\t温度:{1}\t天气:{2}\t风向:{3}\t".format(result[i]['date'], result[i]['weather'], result[i]['direct'], result[i]['temperature']))
